****This code analyzes the data for "An Eye Tracking Study of Gender Biased Information Acquisition in Candidate Evaluation"
***Libby Jenke
**August 2024

clear all
*cd ""
*global workdir ""
*use ".../jenkeReplicationData.dta"

xtset subjNum

********Figure 1: Proportions of Respondents Who Viewed the Information Types for Each Number of Trials********
hist count_lookjobs, percent
hist count_lookpic, percent
hist count_lookpersonals, percent
hist count_lookpolicies, percent

********Table 1: Sample Demographics********
tab age2
tab selfIDgend
tab pid
tab educ2
tab race
tab ideo

********Table 2: Effects of Candidate Gender on Attention********
*Political experience
xtreg jobsPerc candGend if picNum>0
*Personal info
xtreg personalsPerc candGend if picNum>0
*Issue positions
xtreg policiesPerc candGend if picNum>0

********Table 3: Effects of Candidate Gender and Respondent Sex on Attention********
*Political experience
xtreg jobsPerc candGend##selfIDgend if picNum>0
*Personal info
xtreg personalsPerc candGend##selfIDgend if picNum>0
*Issue positions
xtreg policiesPerc candGend##selfIDgend if picNum>0

********Table 4: Effects of Candidate Gender and Stereotypical Issue Masculinity/Femininity on Attention********
xtreg policiesPerc candGend##c.fem_issue if picNum>0 & (mas_issue!=0 | fem_issue!=0)



